package com.yicong.ants.bean.circle;

import java.util.List;

/**
 * @author cch
 * @version 2020/11/10
 */
public class ArticleBean {

    /**
     * office_id : 15
     * title : 覅我见过改哈今晚hiOA我们好卡文件hiOA尬舞哈维
     * browse_qty : 556
     * share_qty : 660
     * like_qty : 5635
     * is_like : 0
     */

    private Integer office_id;
    private String title;
    private String browse_qty;
    private String share_qty;
    private String image_url;
    private String like_qty;
    private int type;
    private Integer is_like;
    private List<RewardInfo> reward;
    private List<String> urls_files;

    public ArticleBean() {
    }

    public Integer getOffice_id() {
        return this.office_id;
    }

    public String getTitle() {
        return this.title;
    }

    public String getBrowse_qty() {
        return this.browse_qty;
    }

    public String getShare_qty() {
        return this.share_qty;
    }

    public String getImage_url() {
        return this.image_url;
    }

    public String getLike_qty() {
        return this.like_qty;
    }

    public int getType() {
        return this.type;
    }

    public Integer getIs_like() {
        return this.is_like;
    }

    public List<RewardInfo> getReward() {
        return this.reward;
    }

    public List<String> getUrls_files() {
        return this.urls_files;
    }

    public void setOffice_id(Integer office_id) {
        this.office_id = office_id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setBrowse_qty(String browse_qty) {
        this.browse_qty = browse_qty;
    }

    public void setShare_qty(String share_qty) {
        this.share_qty = share_qty;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public void setLike_qty(String like_qty) {
        this.like_qty = like_qty;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setIs_like(Integer is_like) {
        this.is_like = is_like;
    }

    public void setReward(List<RewardInfo> reward) {
        this.reward = reward;
    }

    public void setUrls_files(List<String> urls_files) {
        this.urls_files = urls_files;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ArticleBean)) return false;
        final ArticleBean other = (ArticleBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$office_id = this.getOffice_id();
        final Object other$office_id = other.getOffice_id();
        if (this$office_id == null ? other$office_id != null : !this$office_id.equals(other$office_id))
            return false;
        final Object this$title = this.getTitle();
        final Object other$title = other.getTitle();
        if (this$title == null ? other$title != null : !this$title.equals(other$title))
            return false;
        final Object this$browse_qty = this.getBrowse_qty();
        final Object other$browse_qty = other.getBrowse_qty();
        if (this$browse_qty == null ? other$browse_qty != null : !this$browse_qty.equals(other$browse_qty))
            return false;
        final Object this$share_qty = this.getShare_qty();
        final Object other$share_qty = other.getShare_qty();
        if (this$share_qty == null ? other$share_qty != null : !this$share_qty.equals(other$share_qty))
            return false;
        final Object this$image_url = this.getImage_url();
        final Object other$image_url = other.getImage_url();
        if (this$image_url == null ? other$image_url != null : !this$image_url.equals(other$image_url))
            return false;
        final Object this$like_qty = this.getLike_qty();
        final Object other$like_qty = other.getLike_qty();
        if (this$like_qty == null ? other$like_qty != null : !this$like_qty.equals(other$like_qty))
            return false;
        if (this.getType() != other.getType()) return false;
        final Object this$is_like = this.getIs_like();
        final Object other$is_like = other.getIs_like();
        if (this$is_like == null ? other$is_like != null : !this$is_like.equals(other$is_like))
            return false;
        final Object this$reward = this.getReward();
        final Object other$reward = other.getReward();
        if (this$reward == null ? other$reward != null : !this$reward.equals(other$reward))
            return false;
        final Object this$urls_files = this.getUrls_files();
        final Object other$urls_files = other.getUrls_files();
        if (this$urls_files == null ? other$urls_files != null : !this$urls_files.equals(other$urls_files))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ArticleBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $office_id = this.getOffice_id();
        result = result * PRIME + ($office_id == null ? 43 : $office_id.hashCode());
        final Object $title = this.getTitle();
        result = result * PRIME + ($title == null ? 43 : $title.hashCode());
        final Object $browse_qty = this.getBrowse_qty();
        result = result * PRIME + ($browse_qty == null ? 43 : $browse_qty.hashCode());
        final Object $share_qty = this.getShare_qty();
        result = result * PRIME + ($share_qty == null ? 43 : $share_qty.hashCode());
        final Object $image_url = this.getImage_url();
        result = result * PRIME + ($image_url == null ? 43 : $image_url.hashCode());
        final Object $like_qty = this.getLike_qty();
        result = result * PRIME + ($like_qty == null ? 43 : $like_qty.hashCode());
        result = result * PRIME + this.getType();
        final Object $is_like = this.getIs_like();
        result = result * PRIME + ($is_like == null ? 43 : $is_like.hashCode());
        final Object $reward = this.getReward();
        result = result * PRIME + ($reward == null ? 43 : $reward.hashCode());
        final Object $urls_files = this.getUrls_files();
        result = result * PRIME + ($urls_files == null ? 43 : $urls_files.hashCode());
        return result;
    }

    public String toString() {
        return "ArticleBean(office_id=" + this.getOffice_id() + ", title=" + this.getTitle() + ", browse_qty=" + this.getBrowse_qty() + ", share_qty=" + this.getShare_qty() + ", image_url=" + this.getImage_url() + ", like_qty=" + this.getLike_qty() + ", type=" + this.getType() + ", is_like=" + this.getIs_like() + ", reward=" + this.getReward() + ", urls_files=" + this.getUrls_files() + ")";
    }

    public static class RewardInfo {
        String from_uid;
        String amount;
        String avatar;
        String nickname;

        public RewardInfo() {
        }

        public String getFrom_uid() {
            return this.from_uid;
        }

        public String getAmount() {
            return this.amount;
        }

        public String getAvatar() {
            return this.avatar;
        }

        public String getNickname() {
            return this.nickname;
        }

        public void setFrom_uid(String from_uid) {
            this.from_uid = from_uid;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public boolean equals(final Object o) {
            if (o == this) return true;
            if (!(o instanceof RewardInfo)) return false;
            final RewardInfo other = (RewardInfo) o;
            if (!other.canEqual((Object) this)) return false;
            final Object this$from_uid = this.getFrom_uid();
            final Object other$from_uid = other.getFrom_uid();
            if (this$from_uid == null ? other$from_uid != null : !this$from_uid.equals(other$from_uid))
                return false;
            final Object this$amount = this.getAmount();
            final Object other$amount = other.getAmount();
            if (this$amount == null ? other$amount != null : !this$amount.equals(other$amount))
                return false;
            final Object this$avatar = this.getAvatar();
            final Object other$avatar = other.getAvatar();
            if (this$avatar == null ? other$avatar != null : !this$avatar.equals(other$avatar))
                return false;
            final Object this$nickname = this.getNickname();
            final Object other$nickname = other.getNickname();
            if (this$nickname == null ? other$nickname != null : !this$nickname.equals(other$nickname))
                return false;
            return true;
        }

        protected boolean canEqual(final Object other) {
            return other instanceof RewardInfo;
        }

        public int hashCode() {
            final int PRIME = 59;
            int result = 1;
            final Object $from_uid = this.getFrom_uid();
            result = result * PRIME + ($from_uid == null ? 43 : $from_uid.hashCode());
            final Object $amount = this.getAmount();
            result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
            final Object $avatar = this.getAvatar();
            result = result * PRIME + ($avatar == null ? 43 : $avatar.hashCode());
            final Object $nickname = this.getNickname();
            result = result * PRIME + ($nickname == null ? 43 : $nickname.hashCode());
            return result;
        }

        public String toString() {
            return "ArticleBean.RewardInfo(from_uid=" + this.getFrom_uid() + ", amount=" + this.getAmount() + ", avatar=" + this.getAvatar() + ", nickname=" + this.getNickname() + ")";
        }
    }
}
